package com.gmss.crawler.module.publication.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 出版物表
 * </p>
 *
 * @author Auto-generator
 * @since 2021-10-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("publication")
public class Publication extends Model<Publication> {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 人员表id
     */
    private Long personId;
    /**
     * 出版物名称
     */
    private String title;
    /**
     * 语言，0：中文，1：外文
     */
    private Integer languageStandard;
    /**
     * 作者
     */
    private String authors;
    /**
     * 关键词
     */
    private String keyword;
    /**
     * 发表日期
     */
    private String publicationDate;
    /**
     * 总页数
     */
    private String pages;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建者
     */
    private String createUser;
    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 更新者
     */
    private String updateUser;

    @TableField(exist = false)
    private String name;

    @TableField(exist = false)
    private Integer academicianTitle;

    @TableField(exist = false)
    private String academicianTitleValue;

    @TableField(exist = false)
    private String electionYear;

    @TableField(exist = false)
    private String titleYears;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
